<UserControl x:Class="P2.Cuberry.Modules.SimpleAccounting.FiCheque.FiChequesFindView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Margin="0" MinWidth="230" Width="Auto" MinHeight="230" Height="300">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>     
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </UserControl.Resources>

    <Grid Keyboard.KeyDown="Control_KeyDown">

        <Grid.Resources>           
        </Grid.Resources>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="28"/>
            <RowDefinition Height="4" />
            <RowDefinition Height="218*" />
        </Grid.RowDefinitions>


        <Menu Grid.Column="0" Grid.Row="0" x:Name="menuMain" Height="25" VerticalAlignment="Top" Background="{DynamicResource MyBlueBackgroundGradientBrush}" >
            <MenuItem x:Name="FiChequeFindBtn" Margin="2,4,0,2"  Header="{Translate FiChequeFind}" x:Uid="btnChequeFind" Command="{Binding FiChequeFindCommand}" Style="{StaticResource P2FindMenuItemStyleFind}"/>
            <MenuItem x:Name="FiChequeClrBtn" Margin="2,4,0,2"  Header="{Translate FiChequeClr}" x:Uid="btnChequeClr" Command="{Binding FiChequeClrCommand}" Style="{StaticResource P2FindMenuItemStyleClear}"/>
            <MenuItem x:Name="FiChequeAddBtn" Margin="2,4,0,2"   Header="{Translate FiChequeAdd}" x:Uid="btnChequeAdd" Command="{Binding FiChequeAddCommand}"  Style="{StaticResource P2FindMenuItemStyleAdd}"/>
        </Menu>
                
        <Label Grid.Row="2" Height="25" Margin="0,4,0,0" Name="ChequeNoFromL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" 
        Content="{Translate ChequeNoFromL}"></Label> 
        <TextBox Grid.Row="2" Height="23" Margin="90,4,9,0" Name="ChequeNoFrom"  Text="{Binding ChequeNoFrom}" VerticalAlignment="Top" 
        Style="{StaticResource P2TextBoxStyle}" />
        <Label Grid.Row="2" Height="25" Margin="0,30,0,0" Name="ChequeNoToL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" 
        Content="{Translate ChequeNoToL}"></Label>
        <TextBox Grid.Row="2" Height="23" Margin="90,30,9,0" Name="ChequeNoTo"  Text="{Binding ChequeNoTo}" VerticalAlignment="Top" 
        Style="{StaticResource P2TextBoxStyle}" />
        
        <Label Grid.Row="2" Height="25" Margin="0,56,0,0" Name="AmountFromL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" 
        Content="{Translate AmountFromL}"></Label>
        <TextBox Grid.Row="2" Height="23" Margin="90,56,9,0" Name="AmountFrom"  Text="{Binding AmountFrom}" VerticalAlignment="Top" 
        Style="{StaticResource P2TextBoxStyle}" />

        <Label Grid.Row="2" Height="25" Margin="0,82,0,0" Name="AmountToL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" 
        Content="{Translate AmountToL}"></Label>
        <TextBox Grid.Row="2" Height="23" Margin="90,82,9,0" Name="AmountTo"  Text="{Binding AmountTo}" VerticalAlignment="Top" 
        Style="{StaticResource P2TextBoxStyle}" />
        
        <Label Grid.Row="2" Height="25" Margin="0,108,0,0" Name="BankL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" 
        Content="{Translate BankL}"></Label> 
        <TextBox Grid.Row="2" Height="23" Margin="90,108,9,0" Name="Bank"  Text="{Binding Bank}" VerticalAlignment="Top" 
        Style="{StaticResource P2TextBoxStyle}" />

        <Label Grid.Row="2" Height="25" Margin="0,134,0,0" Name="MyBankL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" 
        Content="{Translate MyBankL}"></Label>
        <TextBox Grid.Row="2" Height="23" Margin="90,134,9,0" Name="MyBank"  Text="{Binding MyBank}" VerticalAlignment="Top" 
        Style="{StaticResource P2TextBoxStyle}" />

        <Label Grid.Row="2" Height="25" Margin="0,160,0,0" Name="ValueDateFromL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="85" 
        Content="{Translate ValueDateFromL}"></Label> 
        <DatePicker Grid.Row="2" Height="23" Margin="90,160,0,0" Name="ValueDateFrom"  SelectedDate="{Binding ValueDateFrom}" VerticalAlignment="Top" Width="90" HorizontalAlignment="Left" />

        <Label Grid.Row="2" Height="25" Margin="176,160,0,0" Name="ValueDateL" VerticalAlignment="Top" Content="{Translate ValueDateToL}" HorizontalAlignment="Left" Width="30"></Label>        
        <DatePicker Grid.Row="2" Height="23" Margin="203,160,9,0" Name="ValueDateTo"  SelectedDate="{Binding ValueDateTo}" VerticalAlignment="Top" />

        <Label Grid.Row="2" Height="25" Margin="0,188,0,0" Name="CurrencyIDL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" 
        Content="{Translate CurrencyIDL}"></Label> 
        
        <ComboBox Grid.Row="2" Height="23" Margin="90,188,9,0" Name="CurrencyID" DisplayMemberPath="XConfigCurrencyCur"  ItemsSource="{Binding XConfigCurrencys}"  
        SelectedValue="{Binding CurrencyID, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" 
        SelectedValuePath="CurrencyID" Style="{StaticResource P2ComboBoxStyle}" VerticalAlignment="Top" />

        <Label Grid.Row="2" Height="23" Margin="0,214,0,0" Name="FiscalYearIDL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" 
        Content="{Translate FiscalYearIDL}"></Label>
        <ComboBox Grid.Row="2" Height="23" Margin="90,214,9,0" Name="FiscalYearID" ItemsSource="{Binding FiscalYears}" SelectedValue="{Binding FiscalYearID}" VerticalAlignment="Top" SelectedValuePath="FiscalYearID" DisplayMemberPath="FiscalYearName" Style="{StaticResource P2ComboBoxStyle}"  />

        <Label Grid.Row="2" Height="23" Margin="0,240,0,0" Name="StatusNameL" HorizontalAlignment="Left" Width="86" VerticalAlignment="Top"  Content="{Translate StatusNameL}"></Label>
        <ComboBox Grid.Row="2" Height="23" Margin="90,240,9,0" Name="StatusID" VerticalAlignment="Top" 
                  SelectedValuePath="StatusID" DisplayMemberPath="StatusNameCur" ItemsSource="{Binding WorkflowStatusses}"
                  SelectedValue="{Binding StatusID}" Style="{StaticResource P2ComboBoxStyle}" />
    </Grid>
</UserControl>